package vue.panels;

import vue.Ui;
import vue.components.*;

import java.awt.*;

/**
 * <p>Title: vue.LoginEtInscriptionPanel </p>
 *
 * <p>Description: Contient le panneau de login et d'inscription </p>
 *
 * <p>Copyright: (c) 2008 FSSIM</p>
 *
 * <p>Company: FSSImock</p>
 *
 * @author Antoine Farnault
 * @version 1.0
 */
public class LoginEtWelcomePanel extends TPPanel{

	private static final long serialVersionUID = 1L;
	public Ui ui;
	
	public LoginPanel loginPanel;
	public WelcomePanel welcomePanel;
	
	/**
	 * Constructeur
	 * @param ui
	 */
	public LoginEtWelcomePanel(Ui ui) {
		this.ui = ui;
		initComponents();
	}
	
	/**
	 * Initialisation graphique
	 */
	private void initComponents() {
		setName("loginEtInscriptionPanel");
		loginPanel = new LoginPanel(ui);
		welcomePanel = new WelcomePanel();
		
		setLayout(new GridLayout(1,2));
		add(loginPanel);
		add(welcomePanel);
	}
}
